<?php
//Application root
define('APPLICATION_DIR', str_replace('\\', '/', realpath(dirname(__FILE__) . '/..')));
//BO website suffix
define('WEBSITE_SUFFIX', '/demo');
if (isset($_SERVER['HTTP_HOST']))
{
	define( "APPLICATION_URL", "http://" . $_SERVER['HTTP_HOST'] . WEBSITE_SUFFIX );
}
else
{
	define( 'APPLICATION_URL', '../');
}


// Publication
define('BUSINESS_DIR',          APPLICATION_DIR.'/application/business');

//Application name
define("APPLICATION_NAME", 						'DEMO');

//Smarty config
define('TEMPLATE_DIR', APPLICATION_DIR.'/application/view/templates');
define('TEMPLATE_C_DIR', APPLICATION_DIR.'/application/view/templates_pub');


//boolean type
define('DEBUG_MODE',	1);
define("USER_AUTO_LOG", 0);
//LANGUAGE config
define('DEFAULT_LANGUAGE', 'en');

//TIMEZONE config
define('TIMEZONE', 'Asia/Saigon');

// MANUAL_CURRENT_TIME for testing purpose, in form: day/month/year hour:minute:second
define('MANUAL_CURRENT_TIME', null);

//============================= Database config ==============================//
define('DATABASE_MAIN_SERVER', 'localhost');
define('DATABASE_MAIN_NAME', 'DEMO');
define('DATABASE_MAIN_LOGIN', 'root');
define('DATABASE_MAIN_PASSWORD', '');

//========================= End Database config =============================//
$database_dsn["database_".DATABASE_MAIN_NAME] = "mysql://".DATABASE_MAIN_LOGIN.":".DATABASE_MAIN_PASSWORD."@".DATABASE_MAIN_SERVER."/".DATABASE_MAIN_NAME."?new_link=true";

